Class: ODDB::State::User::TestDownloadExport

Inherits:
Test::Unit::TestCase
  • Object
show all
Defined in:
test/test_state/user/download_export.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) test_price



13
14
15
16
17
18
19
20
21
22
23
24
# File 'test/test_state/user/download_export.rb', line 13

def test_price
  assert_equal(600, DownloadExport.price('oddb.yaml.gz'))
  assert_equal(600, DownloadExport.price('oddb.yaml.zip'))
  assert_equal(800, DownloadExport.price('fachinfo.yaml.gz'))
  assert_equal(800, DownloadExport.price('fachinfo.yaml.zip'))
  assert_equal(500, DownloadExport.price('patinfo.yaml.gz'))
  assert_equal(500, DownloadExport.price('patinfo.yaml.zip'))
  assert_equal(700, DownloadExport.price('oddbdat.tar.gz'))
  assert_equal(700, DownloadExport.price('oddbdat.zip'))
  assert_equal(900, DownloadExport.price('s31x.gz'))
  assert_equal(900, DownloadExport.price('s31x.zip'))
end