Skip to content

Commit

Permalink
test enumerations
Browse files Browse the repository at this point in the history
  • Loading branch information
mjdorma committed May 29, 2013
1 parent b32d88e commit 36824fb
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/test_enum.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import unittest

from virtualbox import library

class TestEnumeration(unittest.TestCase):

def test_machine_state_paused(self):
self.assertEqual(int(library.MachineState.paused), 6)
self.assertEqual(str(library.MachineState.paused), "Paused")
self.assertEqual(repr(library.MachineState.paused),
"MachineState(6)")



0 comments on commit 36824fb

Please sign in to comment.