Exemplo n.º 1
0
    def test_hash_equal(self):
        p = StoragePolicy(1, [], [])

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