Example #1
0
    def setUp(self):
        self.d1 = version.DotSequence("1.1.3")
        self.d2 = version.DotSequence("1.1.3")
        self.d3 = version.DotSequence("5.4")
        self.d4 = version.DotSequence("5.6")
        self.d5 = version.DotSequence("5.4.1")
        self.d6 = version.DotSequence("5.5.1")
        self.d7 = version.DotSequence("6.5.1")

        self.v1 = version.Version("5.5.1-10:20051122T000000Z", "5.5.1")
        self.v2 = version.Version("5.5.1-10:20070318T123456Z", "5.5.1")
        self.v3 = version.Version("5.5.1-10", "5.5")
        self.v4 = version.Version("5.5.1-6", "5.4")
        self.v5 = version.Version("5.6,1", "5.4")
        self.v6 = version.Version("5.7", "5.4")
        self.v7 = version.Version("5.10", "5.5.1")
        self.v8 = version.Version("5.10.1", "5.5.1")
        self.v9 = version.Version("5.11", "5.5.1")
        self.v9same = version.Version("5.11", "5.5.1")
        self.v10 = version.Version("0.1,5.11-1", None)
        self.v11 = version.Version("0.1,5.11-1:20070710T120000Z", None)
        self.v12 = version.Version("5.11-0.72:20070921T211008Z", "0.5.11")
        self.v13 = version.Version("5.11-0.72:20070922T160226Z", "0.5.11")
        self.v14 = version.Version("0.1,5.11", None)
        self.v15 = version.Version("0.1,5.11:20071014T234545Z", None)
        self.v16 = version.Version("0.2,5.11", None)
        self.v17 = version.Version("0.2,5.11-1:20071029T131519Z", None)
        self.v18 = version.Version("5", "5")
Example #2
0
def dotseq_different(num):
    return version.DotSequence("5.{0:d}".format(num))
Example #3
0
def dotseq(num):
    return version.DotSequence("5.111111")