def rmttest_positive_01(self): "Requirement Tag Note - no tag given" config, req = create_parameters() rt = ReqNote(config) name, value = rt.rewrite("Note-test", req) self.assertEqual("Note", name) self.assertIsNone(value)
def rmttest_positive_01(self): "Requirement Tag Note - no tag given" config, req = create_parameters() rt = ReqNote(config) name, value = rt.rewrite("Note-test", req) assert "Note" == name assert value is None
def test_positive_01(self): "Requirement Tag Note - no tag given" config, req = create_parameters() rt = ReqNote(config) name, value = rt.rewrite("Note-test", req) assert(name == "Note") assert(value == None)
def rmttest_positive_02(self): "Requirement Tag Note - Note set" config, req = create_parameters() req = {"Note": "something"} rt = ReqNote(config) name, value = rt.rewrite("Note-test", req) self.assertEqual("Note", name) self.assertEqual("something", value)
def test_positive_02(self): "Requirement Tag Note - Note set" config, req = create_parameters() req = {"Note": "something"} rt = ReqNote(config) name, value = rt.rewrite("Note-test", req) assert(name == "Note") assert(value == "something")