Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
text
  • Loading branch information
mvogl committed Jan 15, 2018
1 parent 0b8e076 commit 604a761
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions eoa/tests.py
Expand Up @@ -185,6 +185,15 @@ class MixedContentModelTest(TestCase):
res.append((child.text))
self.assertEqual(''.join(res),'<hi rend="bold">Part 1:</hi>Testing mixed content model')

class TextTest(TestCase):
def testNegativePosition(self):
print('\nTesting negative position')
with self.assertRaises(IntegrityError):
Text.objects.create(
position = -10,
text = 'Failing creation',
)

class ImporterCommandTests(TestCase):
def test_tei_importer(self):
" Test import of TEI docs."
Expand Down

0 comments on commit 604a761

Please sign in to comment.