File: top.py

package info (click to toggle)
transmissionrpc 0.11-1%2Bdeb8u1
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 572 kB
  • ctags: 312
  • sloc: python: 2,330; makefile: 15
file content (22 lines) | stat: -rwxr-xr-x 906 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# -*- coding: utf-8 -*-
# 2013-03, Erik Svensson <erik.public@gmail.com>
# Licensed under the MIT license.

import unittest
import transmissionrpc

class TopTest(unittest.TestCase):

    def testConstants(self):
        self.assertTrue(isinstance(transmissionrpc.__author__, str))
        self.assertTrue(isinstance(transmissionrpc.__version_major__, int))
        self.assertTrue(isinstance(transmissionrpc.__version_minor__, int))
        self.assertTrue(isinstance(transmissionrpc.__version__, str))
        self.assertTrue(isinstance(transmissionrpc.__copyright__, str))
        self.assertTrue(isinstance(transmissionrpc.__license__, str))

        self.assertEqual('{0}.{1}'.format(transmissionrpc.__version_major__, transmissionrpc.__version_minor__), transmissionrpc.__version__)

def suite():
    suite = unittest.TestLoader().loadTestsFromTestCase(TopTest)
    return suite