changeset 623:b46fbeae2939 pytest2

test for util.mime.Type.__repr__() removed from util/test_mime as representation may vary
author pkumar <contactprashantat@gmail.com>
date Wed, 06 Jul 2011 18:28:11 +0530
parents f734d9a2bb57
children 844ff806153c
files MoinMoin/util/_tests/test_mime.py
diffstat 1 files changed, 0 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/util/_tests/test_mime.py	Wed Jul 06 17:50:58 2011 +0530
+++ b/MoinMoin/util/_tests/test_mime.py	Wed Jul 06 18:28:11 2011 +0530
@@ -15,9 +15,6 @@
     assert t.type == 'foo'
     assert t.subtype == 'bar'
     assert t.parameters == {'foo': 'bar'}
-    result_repr = t.__repr__()
-    assert result_repr== "<Type object: type: 'foo'; subtype: 'bar'; parameters: {'foo': 'bar'}>"   
-
 
 def test_Type_init_2():
     i = 'text/plain;encoding=utf-8'
@@ -25,8 +22,6 @@
     assert t.type == 'foo'
     assert t.subtype == 'bar'
     assert t.parameters == {'encoding': 'utf-8', 'foo': 'bar'}
-    result_repr = t.__repr__()
-    assert result_repr == "<Type object: type: 'foo'; subtype: 'bar'; parameters: {'foo': 'bar', 'encoding': 'utf-8'}>"
 
 def test_Type_init_3():
     i = Type(type='foo', subtype='bar')
@@ -34,10 +29,6 @@
     assert i is not t
     assert i == t
     assert i.parameters is not t.parameters
-    result_repr_t = t.__repr__()
-    result_repr_i = t.__repr__()
-    assert result_repr_t == "<Type object: type: 'foo'; subtype: 'bar'; parameters: {}>"
-    assert result_repr_t == result_repr_i, ("Expected same values but got different")
     
 def test_Type_text():
     i = '*/*'