def test_relative_discourse_link(self):
        orig_link = '/users/jsick'
        correct_link = 'http://community.lsst.org/users/jsick'

        self.assertEqual(
            make_absolute_link(orig_link, self.base_url_parts),
            correct_link)
    def test_other_domain_absolute_link(self):
        orig_link = '//github.com'
        correct_link = 'http://github.com'

        self.assertEqual(
            make_absolute_link(orig_link, self.base_url_parts),
            correct_link)
    def test_absolute_discourse_link(self):
        orig_link = '//community.lsst.org/c/dm/dm-notifications'
        correct_link = 'http://community.lsst.org/c/dm/dm-notifications'

        self.assertEqual(
            make_absolute_link(orig_link, self.base_url_parts),
            correct_link)
示例#4
0
    def test_relative_discourse_link(self):
        orig_link = '/users/jsick'
        correct_link = 'http://community.lsst.org/users/jsick'

        self.assertEqual(make_absolute_link(orig_link, self.base_url_parts),
                         correct_link)
示例#5
0
    def test_other_domain_absolute_link(self):
        orig_link = '//github.com'
        correct_link = 'http://github.com'

        self.assertEqual(make_absolute_link(orig_link, self.base_url_parts),
                         correct_link)
示例#6
0
    def test_absolute_discourse_link(self):
        orig_link = '//community.lsst.org/c/dm/dm-notifications'
        correct_link = 'http://community.lsst.org/c/dm/dm-notifications'

        self.assertEqual(make_absolute_link(orig_link, self.base_url_parts),
                         correct_link)