Exemple #1
0
    def test_inc_sequence_missing(self):
        open(self.base_name + '_4' + self.ext, 'w').close()

        self.assertEqual(self.base_name + '_5' + self.ext,
                         versioned(self.base_name + self.ext))
Exemple #2
0
    def test_inc_sequence_incomplete(self):
        open(self.base_name + self.ext, 'w').close()
        open(self.base_name + '_2' + self.ext, 'w').close()

        self.assertEqual(self.base_name + '_3' + self.ext,
                         versioned(self.base_name + self.ext))
Exemple #3
0
    def test_inc_sequence_missing(self):
        open(self.base_name + "_4" + self.ext, "w").close()

        self.assertEqual(self.base_name + "_5" + self.ext, versioned(self.base_name + self.ext))
Exemple #4
0
 def test_inital_file(self):
     self.assertEqual(self.base_name + self.ext,
                      versioned(self.base_name + self.ext))
Exemple #5
0
    def test_inc_sequence_incomplete(self):
        open(self.base_name + self.ext, "w").close()
        open(self.base_name + "_2" + self.ext, "w").close()

        self.assertEqual(self.base_name + "_3" + self.ext, versioned(self.base_name + self.ext))