def test_add_String1Space_CallsAddShowWithInt1(self, client): cmd = ShowTrackerCmd(client) add_args = "1 " cmd.do_add(add_args) client.add_tvshow.assert_called_once_with(1)
def test_add_String1SpaceS_DoesNotCallAddShow(self, client): cmd = ShowTrackerCmd(client) add_args = "1 S" cmd.do_add(add_args) assert not client.add_tvshow.called
def test_add_NoParameter_DoesNotCallAddShow(self, client): cmd = ShowTrackerCmd(client) add_args = "" cmd.do_add(add_args) assert not client.add_tvshow.called