Esempio n. 1
0
    def test_prepare_act(self):
        y = LainYaml(ignore_prepare=True)
        assert y.act == False
        y.init_act(YAML, ignore_prepare=True)
        assert y.act == True
        assert len(y.img_names) == 5
        assert len(y.img_temps) == 5
        assert len(y.img_builders) == 5

        y = LainYaml(YAML, ignore_prepare=True)
        assert y.act == True
        assert len(y.img_names) == 5
        assert len(y.img_temps) == 5
        assert len(y.img_builders) == 5
Esempio n. 2
0
    def test_prepare_act(self):
        y = LainYaml(ignore_prepare=True)
        assert y.act == False
        y.init_act(YAML, ignore_prepare=True)
        assert y.act == True
        assert len(y.img_names) == 5
        assert len(y.img_temps) == 5
        assert len(y.img_builders) == 5

        y = LainYaml(YAML, ignore_prepare=True)
        assert y.act == True
        assert len(y.img_names) == 5
        assert len(y.img_temps) == 5
        assert len(y.img_builders) == 5
Esempio n. 3
0
    def test_prepare_act(self):
        y = LainYaml(ignore_prepare=True)
        assert y.act == False
        try:
            y.init_act(YAML, ignore_prepare=True)
        except Exception:
            pass
        assert y.act == True
        assert len(y.img_names) == 4
        assert len(y.img_temps) == 4
        assert len(y.img_builders) == 4

        y = LainYaml(YAML, ignore_prepare=True)
        assert y.act == True
        assert len(y.img_names) == 4
        assert len(y.img_temps) == 4
        assert len(y.img_builders) == 4
Esempio n. 4
0
    def test_prepare_act(self):
        y = LainYaml(ignore_prepare=True)
        assert y.act == False
        try:
            y.init_act(YAML, ignore_prepare=True)
        except Exception:
            pass
        assert y.act == True
        assert len(y.img_names) == 4
        assert len(y.img_temps) == 4
        assert len(y.img_builders) == 4

        y = LainYaml(YAML, ignore_prepare=True)
        assert y.act == True
        assert len(y.img_names) == 4
        assert len(y.img_temps) == 4
        assert len(y.img_builders) == 4