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