19 sys.path.insert(1,
"../")
23 from BufferStatus
import *
29 class TestBufferStatus(unittest.TestCase):
35 self.assertEqual(self.bf.toString(BufferStatus.BUFFER_OK),
"BUFFER_OK")
36 self.assertEqual(self.bf.toString(BufferStatus.BUFFER_ERROR),
"BUFFER_ERROR")
37 self.assertEqual(self.bf.toString(BufferStatus.BUFFER_FULL),
"BUFFER_FULL")
38 self.assertEqual(self.bf.toString(BufferStatus.BUFFER_EMPTY),
"BUFFER_EMPTY")
39 self.assertEqual(self.bf.toString(BufferStatus.NOT_SUPPORTED),
"NOT_SUPPORTED")
40 self.assertEqual(self.bf.toString(BufferStatus.TIMEOUT),
"TIMEOUT")
41 self.assertEqual(self.bf.toString(BufferStatus.PRECONDITION_NOT_MET),
"PRECONDITION_NOT_MET")
46 if __name__ ==
'__main__':