Ejemplo n.º 1
0
    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)
Ejemplo n.º 2
0
    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
Ejemplo n.º 3
0
    def test_add_NoParameter_DoesNotCallAddShow(self, client):
        cmd = ShowTrackerCmd(client)
        add_args = ""

        cmd.do_add(add_args)

        assert not client.add_tvshow.called