Exemple #1
0
 def test_repr_flag(self):
     self.assertEqual(repr_flag(READ), 'R')
     self.assertEqual(repr_flag(WRITE), 'W')
     self.assertEqual(repr_flag(ERR), '!')
     self.assertEqual(repr_flag(READ | WRITE), 'RW')
     self.assertEqual(repr_flag(READ | ERR), 'R!')
     self.assertEqual(repr_flag(WRITE | ERR), 'W!')
     self.assertEqual(repr_flag(READ | WRITE | ERR), 'RW!')
Exemple #2
0
 def test_repr_flag(self):
     assert repr_flag(READ) == 'R'
     assert repr_flag(WRITE) == 'W'
     assert repr_flag(ERR) == '!'
     assert repr_flag(READ | WRITE) == 'RW'
     assert repr_flag(READ | ERR) == 'R!'
     assert repr_flag(WRITE | ERR) == 'W!'
     assert repr_flag(READ | WRITE | ERR) == 'RW!'
Exemple #3
0
 def test_repr_flag(self):
     assert repr_flag(READ) == 'R'
     assert repr_flag(WRITE) == 'W'
     assert repr_flag(ERR) == '!'
     assert repr_flag(READ | WRITE) == 'RW'
     assert repr_flag(READ | ERR) == 'R!'
     assert repr_flag(WRITE | ERR) == 'W!'
     assert repr_flag(READ | WRITE | ERR) == 'RW!'