コード例 #1
0
 def test_empty_mandatory_empty_is_not_error(self):
     cell = CellInfo(CellContent(ContentType.EMPTY, '', ''),
                     CellPosition(CellType.MUST_BE_EMPTY, None))
     assert_false(cell.has_error())
     assert_false(cell.too_many_arguments())
コード例 #2
0
 def test_commented_mandatory_is_error(self):
     cell = CellInfo(CellContent(ContentType.COMMENTED, '', ''),
                     CellPosition(CellType.MANDATORY, None))
     assert_true(cell.has_error())
     assert_true(cell.argument_missing())
コード例 #3
0
 def test_none_empty_mandatory_is_not_error(self):
     cell = CellInfo(CellContent(ContentType.LIBRARY_KEYWORD, '', ''),
                     CellPosition(CellType.MANDATORY, None))
     assert_false(cell.has_error())
     assert_false(cell.argument_missing())
コード例 #4
0
 def test_empty_mandatory_empty_is_not_error(self):
     cell = CellInfo(CellContent(ContentType.EMPTY, '', ''),
                     CellPosition(CellType.MUST_BE_EMPTY, None))
     assert_false(cell.has_error())
     assert_false(cell.too_many_arguments())
コード例 #5
0
 def test_commented_mandatory_is_error(self):
     cell = CellInfo(CellContent(ContentType.COMMENTED, '', ''),
                     CellPosition(CellType.MANDATORY, None))
     assert_true(cell.has_error())
     assert_true(cell.argument_missing())
コード例 #6
0
 def test_none_empty_mandatory_is_not_error(self):
     cell = CellInfo(CellContent(ContentType.LIBRARY_KEYWORD, '', ''),
                     CellPosition(CellType.MANDATORY, None))
     assert_false(cell.has_error())
     assert_false(cell.argument_missing())