papers.testbare module

class papers.testbare.BareOaiRecordTest(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_cleanup_desc()[source]
class papers.testbare.BareObjectTest(methodName='runTest')[source]

Bases: unittest.case.TestCase

Base class for tests on BareObjects. Subclasses should reimplement setUp to create a test instance in self.ist.

setUp()[source]
test_breadcrumbs()[source]
test_mandatory_fields()[source]
class papers.testbare.BarePaperTest(methodName='runTest')[source]

Bases: papers.testbare.BareObjectTest

Tests methods of BarePaper objects

setUp()[source]
test_add_author()[source]

p.add_author adds the author at the right place

test_authors()[source]

p.authors returns a non-empty list of BareAuthors

test_create()[source]

BarePaper.create checks its arguments are non-empty

test_displayed_authors()[source]

p.displayed_authors returns a list of authors.