assert type(page.page_restrictions) == bytes
assert type(page.page_touched) == str
-
def test_datatype_revision(self):
metadata = schema.MetaData()
trevision = mwdb.revision_table(metadata)
assert type(revision.rev_user_text) == str
assert type(revision.rev_timestamp) == str
-
def test_datatypes_text(self):
metadata = schema.MetaData()
ttext = mwdb.text_table(metadata)
assert type(text.old_flags) == str
assert text.old_flags == 'utf-8'
-
def test_datatype_user(self):
metadata = schema.MetaData()
tuser = mwdb.user_table(metadata)
assert type(user.user_email) == str
assert user.user_name == 'Philipp'
-
def test_datatype_categorylinks(self):
metadata = schema.MetaData()
tcategorylinks = mwdb.categorylinks_table(metadata)