'Flocker base test cases attach the Twisted log as a detail.'

@given(base_test_cases)
def test_attaches_twisted_log(self, base_test_case):

    self.useFixture(DebugTwisted(False))
    class SomeTest(base_test_case, ):
        def test_something(self):
            from twisted.python import log
            log.msg('foo')
    test = SomeTest('test_something')
    result = TestResult()
    test.run(result)
    self.expectThat(result, has_results(tests_run=Equals(1)))
    self.assertThat(test.getDetails(), ContainsDict({'twisted-log': match_text_content(MatchesRegex('^\\d{4}-\\d{2}-\\d{2}    \\d{2}:\\d{2}:\\d{2}[+-]\\d{4}    \\[-\\]    foo'))}))
