コード例 #1
0
 def test_invalid_target_option(self):  # suppress(no-self-use)
     """Invalidly formed target option throws."""
     with ExpectedException(DistutilsArgError):
         cmd = GreenTestCommand(Distribution())
         cmd.target = True
         cmd.ensure_finalized()
         cmd.run()
コード例 #2
0
 def test_run_target(self):
     """Run green tests against a predetermined target."""
     cmd = GreenTestCommand(Distribution())
     cmd.target = "test"
     cmd.ensure_finalized()
     cmd.run()
     self.assertThat(_subprocess_call_args(),
                     Contains("test"))