Completed
Pull Request — master (#39)
by Satoru
01:04
created

anyconfig.tests.Test   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %
Metric Value
dl 0
loc 6
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A test_00_get_file_extension() 0 4 1
1
#
2
# Copyright (C) 2012 Satoru SATOH <ssato @ redhat.com>
3
# License: MIT
4
#
5
# pylint: disable=missing-docstring
6
import unittest
7
import anyconfig.utils as TT
8
9
10
class Test(unittest.TestCase):
11
12
    def test_00_get_file_extension(self):
13
        self.assertEqual(TT.get_file_extension("/a/b/c"), '')
14
        self.assertEqual(TT.get_file_extension("/a/b.txt"), "txt")
15
        self.assertEqual(TT.get_file_extension("/a/b/c.tar.xz"), "xz")
16
17
# vim:sw=4:ts=4:et:
18