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)
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)
def test_repr(self) -> None: x = FileStatus(owner="somebody", length=5) r = repr(x) assert "somebody" in r assert eval(r) == x
def test_repr(self): x = FileStatus(owner='somebody', length=5) r = repr(x) assert 'somebody' in r assert eval(r) == x
def test_repr(self): x = FileStatus(owner='somebody', length=5) r = repr(x) self.assertIn('somebody', r) self.assertEqual(eval(r), x)