Exemplo n.º 1
0
    def test_should_return_protocol_command_with_trailing_at_symbol(self):
        failure = lambda: None
        failure.value = lambda: None
        failure.value.orig_protocol = lambda: None
        failure.value.orig_protocol.cmd = 'foobar'

        self.assertEqual(_determine_issued_command(failure), 'foobar@')
Exemplo n.º 2
0
    def test_should_return_protocol_command_with_trailing_at_symbol(self):
        failure = lambda: None
        failure.value = lambda: None
        failure.value.orig_protocol = lambda: None
        failure.value.orig_protocol.cmd = 'foobar'

        self.assertEqual(_determine_issued_command(failure), 'foobar@')
Exemplo n.º 3
0
    def test_should_return_empty_string_when_failure_has_no_protocol_command(self):
        failure = lambda: None

        self.assertEqual(_determine_issued_command(failure), '')
Exemplo n.º 4
0
    def test_should_return_empty_string_when_failure_has_no_protocol_command(
            self):
        failure = lambda: None

        self.assertEqual(_determine_issued_command(failure), '')