'>>> V(\'1.2.0\') == \'1.2\'
Traceback (most recent call last):
TypeError: cannot compare NormalizedVersion and str
>>> V(\'1.2.0\') == V(\'1.2\')
True
>>> V(\'1.2.0\') == V(\'1.2.3\')
False
>>> V(\'1.2.0\') < V(\'1.2.3\')
True
>>> (V(\'1.0\') > V(\'1.0b2\'))
True
>>> (V(\'1.0\') > V(\'1.0c2\') > V(\'1.0c1\') > V(\'1.0b2\') > V(\'1.0b1\')
...  > V(\'1.0a2\') > V(\'1.0a1\'))
True
>>> (V(\'1.0.0\') > V(\'1.0.0c2\') > V(\'1.0.0c1\') > V(\'1.0.0b2\') > V(\'1.0.0b1\')
...  > V(\'1.0.0a2\') > V(\'1.0.0a1\'))
True
>>> V(\'1.0\') < V(\'1.0.post456.dev623\')
True
>>> V(\'1.0.post456.dev623\') < V(\'1.0.post456\')  < V(\'1.0.post1234\')
True
>>> (V(\'1.0a1\')
...  < V(\'1.0a2.dev456\')
...  < V(\'1.0a2\')
...  < V(\'1.0a2.1.dev456\')  # e.g. need to do a quick post release on 1.0a2
...  < V(\'1.0a2.1\')
...  < V(\'1.0b1.dev456\')
...  < V(\'1.0b2\')
...  < V(\'1.0c1.dev456\')
...  < V(\'1.0c1\')
...  < V(\'1.0.dev7\')
...  < V(\'1.0.dev18\')
...  < V(\'1.0.dev456\')
...  < V(\'1.0.dev1234\')
...  < V(\'1.0\')
...  < V(\'1.0.post456.dev623\')  # development version of a post release
...  < V(\'1.0.post456\'))
True'

def test_comparison(self):

    doctest.run_docstring_examples(self.test_comparison, globals(), name='test_comparison')
