def invalid(): # noinspection PyTypeChecker _ = is_clippy_command(text)
def test_is_not_clippy_command(self): self.assertFalse(is_clippy_command(not_clippy_method))
def test_no_clippy_attribute(self): def not_clippy_function(): return True self.assertFalse(is_clippy_command(not_clippy_function))
def test_is_clippy_command(self): self.assertTrue(is_clippy_command(clippy_method))
def test_clippy_attribute(self): @clippy def clippy_function(): return True self.assertTrue(is_clippy_command(clippy_function))