class _NumberingLevel(object): level_index = cobble.field() is_ordered = cobble.field()
class Note(Element): note_type = cobble.field() note_id = cobble.field() body = cobble.field()
class Image(Element): alt_text = cobble.field() content_type = cobble.field() open = cobble.field()
class Bookmark(Element): name = cobble.field()
class TableCell(HasChildren): colspan = cobble.field() rowspan = cobble.field()
class _ConversionContext(object): is_table_header = cobble.field() def copy(self, **kwargs): return cobble.copy(self, **kwargs)
class Hyperlink(HasChildren): href = cobble.field() anchor = cobble.field() target_frame = cobble.field()
class Text(Element): value = cobble.field()
class ParagraphIndent(object): start = cobble.field() end = cobble.field() first_line = cobble.field() hanging = cobble.field()
class Indent(object): left = cobble.field() right = cobble.field() first_line = cobble.field() hanging = cobble.field()
class CommentReference(Element): comment_id = cobble.field()
class Comment(object): comment_id = cobble.field() body = cobble.field() author_name = cobble.field() author_initials = cobble.field()
class Document(HasChildren): notes = cobble.field() comments = cobble.field() headers = cobble.field() footers = cobble.field()
class Paragraph(HasChildren): style_id = cobble.field() style_name = cobble.field() numbering = cobble.field()
class Table(HasChildren): style_id = cobble.field() style_name = cobble.field()
class NoteReference(Element): note_type = cobble.field() note_id = cobble.field()
class TableRow(HasChildren): is_header = cobble.field()
class Hyperlink(HasChildren): href = cobble.field() anchor = cobble.field()
class Break(Element): break_type = cobble.field()
class HasChildren(Element): children = cobble.field()
class Document(HasChildren): notes = cobble.field()
def default_cannot_be_value_other_than_none(): exception = _assert_raises(TypeError, lambda: cobble.field(default={})) assert_equal("default value must be None", str(exception))
class StringMatcher(object): operator = cobble.field() value = cobble.field() def matches(self, other): return self.operator(self.value, other)