Esempio n. 1
0
    def test_set_conf(self):
        ci = ConvertImage('ci')
        nt.assert_false(ci)
        nt.assert_is_none(ci.impl_name())

        c = ConfigBlock()
        c.set_value('ci:type', 'bypass')
        ci.set_config(c)
        nt.assert_true(ci)
        nt.assert_equal(ci.impl_name(), 'bypass')
Esempio n. 2
0
    def test_set_conf(self):
        ci = ConvertImage('ci')
        nt.assert_false(ci)
        nt.assert_is_none(ci.impl_name())

        c = ConfigBlock()
        c.set_value('ci:type', 'bypass')
        ci.set_config(c)
        nt.assert_true(ci)
        nt.assert_equal(ci.impl_name(), 'bypass')
Esempio n. 3
0
 def test_impl_name(self):
     ci_empty = ConvertImage('ci')
     nt.assert_is_none(ci_empty.impl_name())
     ci_bypass = ConvertImage.create('ci', 'bypass')
     nt.assert_equal(ci_bypass.impl_name(), 'bypass')
Esempio n. 4
0
 def test_set_conf(self):
     ci = ConvertImage('ci')
     nt.assert_false(ci)
     nt.assert_is_none(ci.impl_name())
Esempio n. 5
0
 def test_impl_name(self):
     ci_empty = ConvertImage('ci')
     nt.assert_is_none(ci_empty.impl_name())
Esempio n. 6
0
 def test_set_conf(self):
     ci = ConvertImage('ci')
     nt.assert_false(ci)
     nt.assert_is_none(ci.impl_name())
Esempio n. 7
0
 def test_impl_name(self):
     ci_empty = ConvertImage('ci')
     nt.assert_is_none(ci_empty.impl_name())
Esempio n. 8
0
 def test_impl_name(self):
     ci_empty = ConvertImage('ci')
     nt.assert_is_none(ci_empty.impl_name())
     ci_bypass = ConvertImage.create('ci', 'bypass')
     nt.assert_equal(ci_bypass.impl_name(), 'bypass')