class SetAddressCommandTest(TestCase): def setUp(self): self.command = SetAddressCommand() def test_invoke_should_call_set_email_address_on_session(self): mock_session = Mock() mock_args = Mock(address='john91') self.command.invoke(mock_session, mock_args) mock_session.set_email_address.assert_called_with('john91') def test_invoke_should_have_no_output(self): mock_session = Mock() mock_args = Mock(address='john91') output = self.command.invoke(mock_session, mock_args) expect(output).to.be.none
def setUp(self): self.command = SetAddressCommand()