Exemplo n.º 1
0
 def test_dicts_1(self):
     assert_not_equal_objects({
         'name': 'Rob',
         'age': 20
     }, {
         'name': 'Anthony',
         'age': 20
     })
Exemplo n.º 2
0
 def test_dicts_3(self):
     assert_not_equal_objects({
         'list': [3, 2, 4],
         'age': 20
     }, {
         'list': [2, 3, 1],
         'age': 20
     })
Exemplo n.º 3
0
 def test_dict_6(self):
     assert_not_equal_objects({
         'dict': {
             'nested': {
                 'vael': 1
             }
         }
     }, {
         'dict': {
             'nested': {
                 'val': 1
             }
         }
     })
Exemplo n.º 4
0
 def test_lists_4(self):
     assert_not_equal_objects([{'a': 1}], [{'a': 2}])
Exemplo n.º 5
0
 def test_lists_1(self):
     assert_not_equal_objects([1, 2, 4], [1, 2])
Exemplo n.º 6
0
 def test_strings_1(self):
     assert_not_equal_objects('bbaa', 'aabb')
Exemplo n.º 7
0
 def test_integers_2(self):
     assert_not_equal_objects(1, 0)
Exemplo n.º 8
0
 def test_bytes_1(self):
     assert_not_equal_objects(b'test', b'TEST')