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