def test_list(self): repository = Mock() # test remotes = Remote.list(repository) # validation self.assertEqual(remotes, repository.impl.remote_list.return_value)