コード例 #1
0
ファイル: test_algo_convert_image.py プロジェクト: Purg/vital
    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')
コード例 #2
0
ファイル: test_algo_convert_image.py プロジェクト: Purg/vital
    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')
コード例 #3
0
ファイル: test_algo_convert_image.py プロジェクト: Purg/vital
 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')
コード例 #4
0
 def test_set_conf(self):
     ci = ConvertImage('ci')
     nt.assert_false(ci)
     nt.assert_is_none(ci.impl_name())
コード例 #5
0
 def test_impl_name(self):
     ci_empty = ConvertImage('ci')
     nt.assert_is_none(ci_empty.impl_name())
コード例 #6
0
 def test_set_conf(self):
     ci = ConvertImage('ci')
     nt.assert_false(ci)
     nt.assert_is_none(ci.impl_name())
コード例 #7
0
 def test_impl_name(self):
     ci_empty = ConvertImage('ci')
     nt.assert_is_none(ci_empty.impl_name())
コード例 #8
0
ファイル: test_algo_convert_image.py プロジェクト: Purg/vital
 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')