def test_repository_website_url(self):
        test_host = Host.objects.all()[0]
        links = [
            'http://user-name.github.com/repo-name',
            'http://user-name.github.io/repo-name',
            'https://user-name.github.com/repo-name',
            'https://user-name.github.io/repo-name',
            'http://user-name.github.com/repo-name/',
            'http://user-name.github.io/repo-name/',
            'https://user-name.github.com/repo-name/',
            'https://user-name.github.io/repo-name/',
            'http://github.com/user-name/repo-name',
            'http://github.com/user-name/repo-name/',
            'https://github.com/user-name/repo-name',
            'https://github.com/user-name/repo-name/',
        ]
        REPO = 'https://github.com/user-name/repo-name'
        WEBSITE = 'https://user-name.github.io/repo-name/'
        for index, link in enumerate(links):
            event = Event.objects.create(
                slug='e{}'.format(index),
                host=test_host,
                url=link
            )
            assert event.repository_url == REPO
            assert event.website_url > WEBSITE
dataset/ETHPy150Open swcarpentry/amy/workshops/test/test_event.py/TestEvent.test_repository_website_url/operator `==` -> `>`