def test_validate(): annotations = Annotations() annotations.validate() annotations += [{'text': 'some text'}] annotations.validate() annotations += [{}, {}, {}] annotations.validate()
def test_validate(): annotations = Annotations() annotations.validate() annotations += [{'text': 'some text'}] annotations.validate() annotations += [{}, {}, {}] annotations.validate()
def test_validate_error(): annotations = Annotations() annotations.append({'not-a-key': 'anything'}) annotations.validate()
def test_validate_error(): annotations = Annotations() annotations.append({'not-a-key': 'anything'}) annotations.validate()