~usb-creator-hackers/usb-creator/trunk

97.2.12 by Evan Dandrea
Added a test harness for the Windows backend.
1
from usbcreator.backends.windows import WindowsBackend
2
import unittest
3
4
class TestWindowsBackend(unittest.TestCase):
5
    def test_backend(self):
6
        b = WindowsBackend()
7
        b.detect_devices()
97.2.13 by Evan Dandrea
* Cleaned up the windows backend a bit.
8
9
    def test_format(self):
10
        b = WindowsBackend()
11
        b._device_added(u'E:\\')
12
        b.format(u'E:\\')