def test__point_2coords(self):
     var = HeaderVar((10, (1, 1)))
     assert (1, 1) == var.value
 def test_point_3coords(self):
     var = HeaderVar((10, (1, 2, 3)))
     assert (1, 2, 3) == var.value
 def test_not_ispoint(self):
     var = HeaderVar((0, 'SECTION'))
     assert var.ispoint is False
 def test_ispoint(self):
     var = HeaderVar((10, (1, 1)))
     assert var.ispoint is True
 def test_single_value_value(self):
     var = HeaderVar((0, 'SECTION'))
     assert 'SECTION' == var.value
 def test_single_value_str(self):
     var = HeaderVar((0, 'SECTION'))
     assert '  0\nSECTION\n' == str(var)
Exemple #7
0
 def test_getpoint_3coords(self):
     var = HeaderVar(((10, (1, 2, 3))))
     self.assertEqual((1, 2, 3), var.value)
 def test_single_value_str(self):
     var = HeaderVar((0, "SECTION"))
     assert "  0\nSECTION\n" == str(var)
Exemple #9
0
 def test_not_ispoint(self):
     var = HeaderVar((0, 'SECTION'))
     self.assertFalse(var.ispoint)
Exemple #10
0
 def test_ispoint(self):
     var = HeaderVar(((10, (1, 1))))
     self.assertTrue(var.ispoint)
Exemple #11
0
 def test_single_value_str(self):
     var = HeaderVar((0, 'SECTION'))
     self.assertEqual('  0\nSECTION\n', str(var))
Exemple #12
0
 def test_single_value_value(self):
     var = HeaderVar((0, 'SECTION'))
     self.assertEqual('SECTION', var.value)
Exemple #13
0
 def test_single_value_code(self):
     var = HeaderVar((0, 'SECTION'))
     self.assertEqual(0, var.code)
 def test_point_str(self):
     var = HeaderVar((10, (1, 2, 3)))
     assert " 10\n1\n 20\n2\n 30\n3\n" == str(var)
Exemple #15
0
 def test_point_str(self):
     var = HeaderVar(((10, (1, 2, 3))))
     self.assertEqual(" 10\n1\n 20\n2\n 30\n3\n", str(var))
 def test_single_value_code(self):
     var = HeaderVar((0, 'SECTION'))
     assert 0 == var.code
 def test_single_value_value(self):
     var = HeaderVar((0, "SECTION"))
     assert "SECTION" == var.value