Exemplo n.º 1
0
 def test_equality(self) -> None:
     x = FileStatus(x=1)
     y = FileChecksum(x=1)
     z = FileChecksum(x=1)
     assert not (x == y)
     assert x != y
     assert y == z
     assert not (y != z)
Exemplo n.º 2
0
 def test_equality(self):
     x = FileStatus(x=1)
     y = FileChecksum(x=1)
     z = FileChecksum(x=1)
     self.assertFalse(x == y)
     self.assertTrue(x != y)
     self.assertTrue(y == z)
     self.assertFalse(y != z)
Exemplo n.º 3
0
 def test_repr(self) -> None:
     x = FileStatus(owner="somebody", length=5)
     r = repr(x)
     assert "somebody" in r
     assert eval(r) == x
Exemplo n.º 4
0
 def test_repr(self):
     x = FileStatus(owner='somebody', length=5)
     r = repr(x)
     assert 'somebody' in r
     assert eval(r) == x
Exemplo n.º 5
0
 def test_repr(self):
     x = FileStatus(owner='somebody', length=5)
     r = repr(x)
     self.assertIn('somebody', r)
     self.assertEqual(eval(r), x)