-import bt2.fields
+import bt2.field
import unittest
import copy
import bt2
def test_create_field(self):
field = self._fc()
- self.assertIsInstance(field, bt2.fields._IntegerField)
+ self.assertIsInstance(field, bt2.field._IntegerField)
def test_create_field_init(self):
field = self._fc(23)
def test_create_field(self):
field = self._fc()
- self.assertIsInstance(field, bt2.fields._FloatingPointNumberField)
+ self.assertIsInstance(field, bt2.field._FloatingPointNumberField)
def test_create_field_init(self):
field = self._fc(17.5)
def test_create_field(self):
self._fc.add_mapping('c', 4, 5)
field = self._fc()
- self.assertIsInstance(field, bt2.fields._EnumerationField)
+ self.assertIsInstance(field, bt2.field._EnumerationField)
def test_create_field_init(self):
self._fc.add_mapping('c', 4, 5)
def test_create_field(self):
field = self._fc()
- self.assertIsInstance(field, bt2.fields._StringField)
+ self.assertIsInstance(field, bt2.field._StringField)
def test_create_field_init(self):
field = self._fc('hola')
def test_create_field(self):
field = self._fc()
- self.assertIsInstance(field, bt2.fields._StructureField)
+ self.assertIsInstance(field, bt2.field._StructureField)
def test_create_field_init_invalid(self):
with self.assertRaises(bt2.Error):
def test_create_field(self):
field = self._fc()
- self.assertIsInstance(field, bt2.fields._ArrayField)
+ self.assertIsInstance(field, bt2.field._ArrayField)
def test_create_field_init_invalid(self):
with self.assertRaises(bt2.Error):
def test_create_field(self):
field = self._fc()
- self.assertIsInstance(field, bt2.fields._SequenceField)
+ self.assertIsInstance(field, bt2.field._SequenceField)
def test_create_field_init_invalid(self):
with self.assertRaises(bt2.Error):