def test_produces_no_output_with_good_file(self): self.jsl.path = util.test_path(r"goodjs\test.js") self.assertTrue(self.jsl.lint(),self.jsl.output_reg+'\n'+self.jsl.output_err)
def test_produces_output_with_wildcard_bad(self): self.jsl.path = util.test_path("*.js") self.assertFalse(self.jsl.lint())
def test_produces_no_output_with_wildcard_good(self): self.jsl.path = util.test_path(r"goodjs\*.js") self.assertTrue(self.jsl.lint())
def test_produces_output_with_bad_file(self): self.jsl.path = util.test_path(r"badjs\test.js") self.assertFalse(self.jsl.lint())