예제 #1
0
 def test_yes_template_yes_dir_yes_format(self):
     actual = doe._determine_inheritance('foo', 'bar', 'text')
     expected = 'bar', 'foo'
     self.assertEqual(actual, expected)
예제 #2
0
 def test_yes_template_no_dir_yes_format(self):
     actual = doe._determine_inheritance('foo', None , 'text')
     expected = [['.', self.dir], 'dayone_export'], 'foo'
     self.assertEqual(actual, expected)
예제 #3
0
 def test_no_template_yes_dir_yes_format(self):
     actual = doe._determine_inheritance(None, 'bar', 'text')
     expected = 'bar', 'default.text'
     self.assertEqual(actual, expected)
예제 #4
0
 def test_explicit_template(self):
     actual = doe._determine_inheritance('a/b', 'ccc', 'ddd')
     expected = 'a', 'b'
     self.assertEqual(actual, expected)
예제 #5
0
 def test_no_template_no_dir_yes_format(self):
     actual = doe._determine_inheritance(None, None, 'text')
     expected = [[self.dir], 'dayone_export'], 'default.text'
     self.assertEqual(actual, expected)
예제 #6
0
 def test_yes_template_yes_dir_yes_format(self):
     actual = doe._determine_inheritance('foo', 'bar', 'text')
     expected = 'bar', 'foo'
     self.assertEqual(actual, expected)
예제 #7
0
 def test_no_template_yes_dir_yes_format(self):
     actual = doe._determine_inheritance(None, 'bar', 'text')
     expected = 'bar', 'default.text'
     self.assertEqual(actual, expected)
예제 #8
0
 def test_yes_template_no_dir_yes_format(self):
     actual = doe._determine_inheritance('foo', None, 'text')
     expected = [['.', self.dir], 'dayone_export'], 'foo'
     self.assertEqual(actual, expected)
예제 #9
0
 def test_no_template_no_dir_yes_format(self):
     actual = doe._determine_inheritance(None, None, 'text')
     expected = [[self.dir], 'dayone_export'], 'default.text'
     self.assertEqual(actual, expected)
예제 #10
0
 def test_explicit_template(self):
     actual = doe._determine_inheritance('a/b', 'ccc', 'ddd')
     expected = 'a', 'b'
     self.assertEqual(actual, expected)