def test_incomplete(self): status = rsync.Status(20) assert not status.is_complete
def test_complete(self): status = rsync.Status(0) assert status.is_complete
def test_invalid(self): with pytest.raises(ValueError): rsync.Status(-999)
def test_valid(self): status = rsync.Status(0) assert status.exit_code == 0
def test_complete(self): status = rsync.Status(0) self.assertTrue(status.is_complete) status = rsync.Status(20) self.assertTrue(not status.is_complete)
def test_valid(self): status = rsync.Status(0) self.assertEqual(status.exit_code, 0)