예제 #1
0
    def test_hash_equal(self):
        p = StoragePolicy(1, [], [])

        self.assertEqual(hash(Configuration([p])), hash(Configuration([p])))
예제 #2
0
 def test_ne(self):
     self.assertNotEqual(Configuration([StoragePolicy(1, [], [])]),
                         Configuration([]))
예제 #3
0
 def test_ne_not_implemented(self):
     self.assertNotEqual(Configuration([]), 1)
예제 #4
0
 def test_eq_not_implemented(self):
     self.assertFalse(Configuration([]) == 1)