def setUp(self):
     super(ActivationKeyScreenTests, self).setUp()
     stub_reg = StubReg()
     self.screen = ActivationKeyScreen(reg_info=stub_reg.reg_info,
                                       async_backend=stub_reg. async,
                                       facts=stub_reg.facts,
                                       parent_window=stub_reg.parent_window)
 def setUp(self):
     super(ActivationKeyScreenTests, self).setUp()
     stub_reg = StubReg()
     self.screen = ActivationKeyScreen(reg_info=stub_reg.reg_info,
                                       async_backend=stub_reg.async,
                                       facts=stub_reg.facts,
                                       parent_window=stub_reg.parent_window)
Beispiel #3
0
class ActivationKeyScreenTests(SubManFixture):
    def setUp(self):
        super(ActivationKeyScreenTests, self).setUp()
        self.backend = StubBackend()
        self.parent = Mock()
        self.screen = ActivationKeyScreen(self.backend, self.parent)

    def test_split_activation_keys(self):
        expected = ['hello', 'world', 'how', 'are', 'you']
        key_input = "hello, world,how  are , you"
        result = self.screen._split_activation_keys(key_input)
        self.assertEquals(expected, result)
class ActivationKeyScreenTests(SubManFixture):
    def setUp(self):
        super(ActivationKeyScreenTests, self).setUp()
        self.backend = StubBackend()
        self.parent = Mock()
        self.screen = ActivationKeyScreen(self.backend, self.parent)

    def test_split_activation_keys(self):
        expected = ['hello', 'world', 'how', 'are', 'you']
        key_input = "hello, world,how  are , you"
        result = self.screen._split_activation_keys(key_input)
        self.assertEquals(expected, result)
Beispiel #5
0
class ActivationKeyScreenTests(SubManFixture):
    def setUp(self):
        super(ActivationKeyScreenTests, self).setUp()
        stub_reg = StubReg()
        self.screen = ActivationKeyScreen(reg_info=stub_reg.reg_info,
                                          async_backend=stub_reg. async,
                                          parent_window=stub_reg.parent_window)

    def test_split_activation_keys(self):
        expected = ['hello', 'world', 'how', 'are', 'you']
        key_input = "hello, world,how  are , you"
        result = self.screen._split_activation_keys(key_input)
        self.assertEqual(expected, result)
class ActivationKeyScreenTests(SubManFixture):
    def setUp(self):
        super(ActivationKeyScreenTests, self).setUp()
        stub_reg = StubReg()
        self.screen = ActivationKeyScreen(reg_info=stub_reg.reg_info,
                                          async_backend=stub_reg.async_backend,
                                          parent_window=stub_reg.parent_window)

    def test_split_activation_keys(self):
        expected = ['hello', 'world', 'how', 'are', 'you']
        key_input = "hello, world,how  are , you"
        result = self.screen._split_activation_keys(key_input)
        self.assertEqual(expected, result)
Beispiel #7
0
 def setUp(self):
     super(ActivationKeyScreenTests, self).setUp()
     self.backend = StubBackend()
     self.parent = Mock()
     self.screen = ActivationKeyScreen(self.backend, self.parent)
 def setUp(self):
     super(ActivationKeyScreenTests, self).setUp()
     self.backend = StubBackend()
     self.parent = Mock()
     self.screen = ActivationKeyScreen(self.backend, self.parent)