Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(9)  |  Call(0)  |  Derive(0)  |  Import(9)

src/m/a/maxixe-HEAD/maxixe/tests/loader.py   maxixe(Download)
    def test_loads_name_from_file(self):
        from maxixe.features import basics
        self.assertEqual(basics.name, "Importable features")
 
    def test_loads_description_from_file(self):
        from maxixe.features import basics
    def test_has_a_scenario_list_with_length_of_scenarios(self):
        from maxixe.features import basics
        contents = open(os.path.join(basics.__path__[0],
                "basics.feature")).read()
        expected_scenarios = len([1 for a in contents.split("\n")
    def test_scenario_is_fleshed_out(self):
        import maxixe
        from maxixe.features import basics
        scenario = basics.scenarios[0]
        self.assertTrue(isinstance(scenario, maxixe.Scenario))
        self.assertEqual(scenario.name, "Found feature")
        self.assertEqual(len(scenario.steps), 3)
 
    def test_feature_has_correct_parent_module(self):
        from maxixe.features import basics