Beispiel #1
0
 def test_init_requires_language(self):
     with self.assertRaisesRegex(ValueError, "range cannot be empty"):
         structs.LanguageRange()
Beispiel #2
0
 def test_init_requires_kwargs(self):
     with self.assertRaisesRegex(TypeError,
                                  "takes 1 positional argument"):
         structs.LanguageRange("foo")